package com.tingyuge.base.thread.pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ExecutorExample {

    public static void main(String[] args) {
        ExecutorService executorService = Executors.newFixedThreadPool(5);


        for (int i = 0; i < 30; i++) {
            executorService.submit(new RunTask());
        }

        executorService.shutdown();
    }
}
